package session09.compent;

import javax.swing.*;

public class PanePanel extends ATMBackPanel {
    private JLabel imgLab;//图片标签

    public JLabel getImgLab() {
        return imgLab;
    }

    public void setImgLab(JLabel imgLab) {
        this.imgLab = imgLab;
    }

    public PanePanel(int x, int y,int height) {
        this.imgLab = new JLabel();
        this.imgLab.setIcon(new ImageIcon("image/pane.jpg"));
        this.imgLab.setBounds(x, y, 620, height);

        this.getBackLab().add(this.imgLab);
    }
}
